package com.chixing.day03_oop;

public class AccountTest {
    public static void main(String[] args) {
        Account account1 = new Account();
        account1.setAccNo(1001);
        account1.setAccName("储蓄账户");
        account1.setAccPassword("xiaotao123");
        account1.setAccBalance(5641.5F);
        account1.setAccTelNo(6665656565L);
        account1.setAccType(0);
        account1.show();
        Account account2 = new Account();
        account2.setAccNo(1002);
        account2.setAccName("信用账户");
        account2.setAccPassword("xiaowu123");
        account2.setAccBalance(99991.5F);
        account2.setAccTelNo(6413156565L);
        account2.setAccType(1);
        account2.show();
        System.out.println("===========");
        account1.setAccTelNo(1833893849);
        account2.depoist(1000);
        account2.withdraw(500);
        account1.show();
        account2.show();
    }
}
